| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | /* |
||
| 23 | module.exports = function () { |
||
| 24 | API.post('/sessions', { |
||
| 25 | client: 'com.includable.cli' |
||
| 26 | }).then(function (response) { |
||
| 27 | const sessionId = response.data.data.id |
||
| 28 | const url = 'https://dashboard.includable.com/authenticate/' + sessionId |
||
| 29 | output.log('Opening ' + url) |
||
| 30 | open(url) |
||
| 31 | output.log('Waiting for the session to be authenticated...') |
||
| 32 | checkSession(sessionId) |
||
| 33 | }) |
||
| 34 | } |
||
| 35 |